﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameBase;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GalaxyPresident
{
    public class AirCraft : Unit
    {
        private static Texture2D texture = Constant.content.Load<Texture2D>(@"Resources/Unit/unit2");
        private static Texture2D texture_s = Constant.content.Load<Texture2D>(@"Resources/Unit/unit2_s");

        public AirCraft(Planet planet)
            : base(planet)
        {
            sprite_s = new Sprite(texture_s, 1, 1,
                new List<int> { 0 }, 150);
            sprite = new Sprite(texture, 1, 1,
                new List<int> { 0 }, 150);
            _attackhelper = new AttackingHelper(new Bullet(this));
            _attackhelper.IsAutoChase = false;

            initSprites(planet);
        }

        protected override Unit createInstance()
        {
            return new AirCraft(PlanetOwner);
        }

        protected override void initInfo()
        {
            meterialCost = 300;
            moneyCost = 400;
            energyCost = 300;

            _rangeAttack = 200;
            _healthPoint = 500;
            _energyPoint = 200;
            _speed = 7;
            _defense = 0.1f;
        }
    }
}
